home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: colossus.holonet.net!russell
  2. From: russell@news.mdli.com (Russell Blackadar)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: beginner question - typecasting
  5. Date: 4 Jan 1996 23:11:29 GMT
  6. Organization: HoloNet National Internet Access System: 510-704-1058/modem
  7. Message-ID: <4chmr1$b0g@colossus.holonet.net>
  8. References: <4cei1r$s02@sun.cis.smu.edu> <30EBCED7.774@sto.fdata.se> <4chgtb$ldg@gold.datalytics.com>
  9. NNTP-Posting-Host: jubal.mdli.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Rob Stewart (stew@datalytics.com) wrote:
  13.  
  14. [...Nice stuff deleted...] 
  15. : The difference in syntax 
  16. : allows for some changes introduced in C++'s syntax.  I don't 
  17. : recall now the eact reason for the new syntax.
  18.  
  19. For one thing, the old syntax only allows one argument and so
  20. it's not always usable for class conversions.  It would not make
  21. sense to have one conversion syntax for classes and another for
  22. built-in types.  
  23.  
  24. Earlier I wrote:
  25. ... but since C supports both, C++ must also.
  26.  
  27. Oops, C does not support the new notation.  Rather, C++ has to 
  28. maintain support for the old C syntax as well as the new.  Sorry
  29. to confuse the issue.
  30. --
  31. Russell Blackadar,   russell@mdli.com
  32.